﻿using System.Collections.Generic;
using Newtonsoft.Json;

namespace Hourglass.Qrobot.Models
{
    /// <summary>
    /// 请求返回的讨论组Model
    /// </summary>
    public sealed class ReturnedDisscusses
    {
        [JsonProperty("dnamelist")]
        public List<Disscuss> Disscusses { get; set; }

        public static ReturnedDisscusses EmptyNew()
        {
            return new ReturnedDisscusses
            {
                Disscusses = new List<Disscuss>()
            };
        }

        #region Internal Class
        public sealed class Disscuss
        {
            [JsonProperty("did")]
            public long Id { get; set; }

            [JsonProperty("name")]
            public string Name { get; set; }
        }

        #endregion Internal Class
    }
}
